package mango.orm.entity.maker;

import java.util.ArrayList;
import java.util.List;

/**
 * 表的一个键
 * 
 * @author zhangms
 */
public class EOKey {
    private String id;
    private String name;
    private String code;
    private List<String> keyColumns = new ArrayList<String>();

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<String> getKeyColumns() {
        return this.keyColumns;
    }

    public void setKeyColumns(List<String> keyColumns) {
        this.keyColumns = keyColumns;
    }

    public void addColumn(String columnId) {
        this.keyColumns.add(columnId);
    }

}
